import type { Mapping, Option } from "@/components/ProFrom/ProFrom.vue";

import { useGlobalStore } from "@/stores";
const { dictionary } = useGlobalStore();

export const queryFormMap: Mapping[] = [
  { label: "发布标题", type: "input", prop: "releaseTitle", col: 4 },
];

export const editFormMap = [
  {
    label: "发布标题",
    type: "input",
    prop: "releaseTitle",
  },
  {
    label: "标题简介",
    type: "textarea",
    prop: "introduction",
  },
].map((e) => ({ ...e, required: true })) as Mapping[];
